<template>
  <a-form-item
    :validate-status="!validateVal ? 'error' : 'validating'"
    :help="!validateVal ? help : null"
  >
    <slot />
  </a-form-item>
</template>

<script>
export default {
  props: {
    validateVal: {
      type: [String, Number, undefined],
      default: ''
    },
    help: {
      type: String,
      default: '请输入'
    }
  }
}
</script>
